.tool-panel__body {
  padding: 14px 16px 18px;
  display: grid;
  gap: 12px;
  background: rgba(255, 255, 255, 0.9);
  overflow-y: auto;
}

.panel-description {
  margin: 0;
  color: #1c2c47;
  font-weight: 600;
  line-height: 1.5;
}

.inline-control {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(247, 249, 253, 0.9);
  color: #1c2c47;
  box-shadow: 0 6px 14px rgba(12, 29, 64, 0.06);
}

.inline-control input[type="checkbox"],
.inline-control input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.inline-control--with-value {
  justify-content: space-between;
  gap: 12px;
}

.inline-control__range {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.inline-control input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
}

.inline-value {
  min-width: 54px;
  text-align: right;
  color: #23324c;
  font-weight: 700;
}

.display-options-group {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 12px 10px;
  background: rgba(247, 249, 253, 0.9);
  display: grid;
  gap: 10px;
  box-shadow: 0 8px 18px rgba(12, 29, 64, 0.06);
}

.display-options__title {
  margin: 0;
  color: #1c2c47;
  font-weight: 700;
}

.display-options__tabs {
  display: grid;
  gap: 8px;
}

.display-options__tabs--grid-2x2 {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.display-options__tabs--pill {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.display-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-weight: 600;
  color: #23324c;
  transition: all 0.2s ease;
}

.display-tab input {
  margin: 0;
}

.display-tab:hover {
  border-color: rgba(31, 111, 235, 0.3);
  box-shadow: 0 6px 14px rgba(31, 111, 235, 0.12);
  color: var(--accent-strong);
}

.display-options__hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.grid-settings {
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 12px;
  background: rgba(247, 249, 253, 0.9);
  display: grid;
  gap: 8px;
}

.grid-settings__eyebrow {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.3px;
}

.grid-settings__description {
  margin: 0;
  color: #1c2c47;
  line-height: 1.5;
}

.grid-accordion {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(12, 29, 64, 0.06);
}

.grid-accordion__header {
  width: 100%;
  border: none;
  background: transparent;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.grid-settings__group-title {
  font-weight: 700;
  color: #1c2c47;
}

.grid-accordion__chevron {
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.grid-accordion__content {
  padding: 0 12px 12px;
  display: grid;
  gap: 8px;
}

.grid-accordion__content[hidden] {
  display: none;
}

.grid-accordion__header[aria-expanded="true"] .grid-accordion__chevron {
  transform: rotate(-135deg);
}

select,
input[type="number"] {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #1c2c47;
  box-shadow: inset 0 1px 2px rgba(12, 29, 64, 0.06);
}

select:focus,
input[type="number"]:focus,
input[type="range"]:focus {
  outline: 1px solid rgba(31, 111, 235, 0.3);
  outline-offset: 1px;
}

@media (max-width: 520px) {
  .display-options__tabs--grid-2x2 {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}
